package com.soft.web.mapper;

import com.soft.web.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface BookMapper {

    List<Book> queryBookList(int start, int limit);

    List<Book> queryBookLike(int start, int limit, Book book);

    int queryBookCount();

    Book queryBookById(String id);

    int addBook(Book book);

    int updateBook(Book book);

    int deleteBookById(String id);

}
